package itdep.domain.address;

import itdep.domain.NamedEntity;

import javax.persistence.*;

/**
 * @author Ivan Khalopik
 * @version $Revision: 47 $ $Date: 2010-07-05 09:28:44 +0000 (Mon, 05 Jul 2010) $
 */
@Entity
@Table(name = "SETTLEMENT")
public class Settlement extends NamedEntity {
	public static final String DISTRICT_PROPERTY = "district";

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ID_DISTRICT", nullable = false)
	private District district;

	public District getDistrict() {
		return district;
	}

	public void setDistrict(District district) {
		this.district = district;
	}
}